package entity;

import com.thoughtworks.xstream.annotations.XStreamAlias;

import java.util.Map;

/**
 * @ClassName TextMessage
 * @Author wuyuyang
 * @Date 2022/1/14 15:16
 * @Description TextMessage
 * @Version 1.0
 */
@XStreamAlias("xml")
public class TextMessage extends BaseMessage{


    @XStreamAlias("Content")
    private String content;//回复的文本内容


    public TextMessage(Map<String, String> requestMap,String content) {
        super(requestMap);
        this.setMsgType("text");
        this.content = content;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    @Override
    public String toString() {
        return "TextMessage{" +
                "content='" + content + '\'' +
                '}';
    }


}
